package com.itzz.spring_zhoneHeng.controller;

import com.itzz.spring_zhoneHeng.base.RestResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
//    @RequestMapping("/login")
//    public String login(){
//        System.out.println("login......");
//        return "redirect:login.html";
//    }
    @RequestMapping("/index")
    public String index(){
        System.out.println("index....");
        return "redirect:index.html";
    }

    @RequestMapping("/error1")
    public String error(){
        System.out.println("error1....");
        return "redirect:error.html";
    }

    @RequestMapping("/logout1")
    public RestResponse logout1(){

        return RestResponse.ok();
    }

}
